#ifndef PRINTPROGRAMINFOLOG
#define PRINTPROGRAMINFOLOG
void printProgramInfoLog(GLuint obj)
	{
	    int infologLength = 0;
	    int charsWritten  = 0;
	    char *infoLog;
	    glGetProgramiv(obj, GL_INFO_LOG_LENGTH,&infologLength);
	    if (infologLength > 0)
	    {
	        infoLog = (char *)malloc(infologLength);
	        glGetProgramInfoLog(obj, infologLength, &charsWritten, infoLog);
		printf("printProgramInfoLog: %s\n",infoLog);
	        free(infoLog);
	    }else{
	 	printf("Program Info Log: OK\n");
	    }
	}
#endif
